package com.jkl.entity.bsWorkflowLog;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.ibatis.type.JdbcType;

import com.jkl.entity.bsAddition.BsAddition;
import com.jkl.entity.dept.BSDept;
import com.jkl.entity.param.BSParam;
import com.jkl.entity.person.BsPerson;

import lombok.Data;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.ColumnType;

@Data
@Accessors(chain = true)
@Table(name = "bs_workflow_log")
public class BsWorkflowLog {
	/**
	 * 主键ID，唯一
	 */
	@Id
	@Column(name = "row_id")
	@ColumnType(jdbcType = JdbcType.INTEGER)
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "Mysql")
	private Integer rowId;

	/**
	 * 流程编码，关联bs_param.group_code
	 */
	@Column(name = "group_code")
	private String groupCode;

	/**
	 * 流程来源数据库表名，
	 */
	@Column(name = "source_table")
	private String sourceTable;

	/**
	 * 流程来源业务ID
	 */
	@Column(name = "source_id")
	private Integer sourceId;

	/**
	 * 流程节点编码，关联bs_param.param_code
	 */
	@Column(name = "node_code")
	private String nodeCode;

	/**
	 * 流程节点内容，记录流程节点文字内容
	 */
	@Column(name = "node_content")
	private String nodeContent;

	/**
	 * 流程节点内容，记录流程节点文字内容
	 */
	@Column(name = "node_content2")
	private String nodeContent2;

	/**
	 * 是否带附件，附件包括图片，视频，文档附件等。具体附件存放bs_addition
	 */
	@Column(name = "is_file")
	private String isFile;

	/**
	 * 操作员ID
	 */
	@Column(name = "person_id")
	private Integer personId;

	/**
	 * 操作时间
	 */
	@Column(name = "oper_time")
	private String operTime;

	/**
	 * 记录状态，1启用，0停用
	 */
	private String status;

	@Transient
	private BsPerson bsPerson;

	@Transient
	private BSParam bsParam;

	@Transient
	private BsAddition bsAddition;

	@Transient
	private BSDept bsDept;

	@Transient
	private String personName;  
  
	@Transient
	private String deptName;

	@Transient
	private int pageSize;

	@Transient
	private int currentPage;

	@Transient
	private List<BsAddition> urlList;

	@Transient
	private int level;

	@Transient  
	private String nodeCodeName;
	
	@Transient
	private List<Integer> rowList;
	@Transient
	private int workflowLogId;

	@Transient
	private float civilEngineering;
	@Transient
	private float equipmentInstall;
	@Transient
	private float population;
	@Transient
	private String procurement;
	@Transient
	private String nextMonth;
	@Transient
	private String reportMonth;
}